# Configure the Alicloud Provider
provider "alicloud" {
  version    = "1.64"
  access_key = var.access_key
  secret_key = var.secret_key
  region     = var.region
}

#module "web-server" {
#  source                  = "./modules/web-server"
#
#  domain                  = var.domain
#  host_name               = var.host_name
#  image_id                = var.image_id
#  instance_type           = var.instance_type
#}

#module "www-prod" {
#  source                  = "./modules/www-prod"
#
#  zone_1                  = var.zone_1
#  domain                  = var.domain
#  host_name               = var.host_name
#  image_id                = var.image_id
#  instance_type           = var.instance_type
#  vpc_cidr                = var.vpc_cidr
#  vsw_1_cidr              = var.vsw_1_cidr
#}

module "k8s" {
  source                  = "./modules/k8s"

  zone_1                  = var.zone_1
  domain                  = var.domain
  host_name               = var.host_name
  image_id                = var.image_id
  instance_type           = var.instance_type
  vpc_cidr                = var.vpc_cidr
  vsw_1_cidr              = var.vsw_1_cidr
}
